#pragma once

#ifndef VOLUMECONTROL_HPP
    #define VOLUMECONTROL_HPP
#include "common.h"

//#include <QWidget>
//#include <QSlider>
//#include <QVBoxLayout>
//#include <QLabel>
//#include <QEvent>
//#include <QHelpEvent>
//#include <QWheelEvent>
//#include <QToolTip>

class VolumeControl : public QWidget {
    Q_OBJECT

public:
    VolumeControl(QWidget* parent = nullptr);

protected:
    void enterEvent(QEnterEvent* event) override;
    void leaveEvent(QEvent* event) override;
    bool event(QEvent* event) override;

private slots:
    void setVolume(int value);

private:
    QSlider* volumeSlider;
    QLabel* volumeLabel;
    QLabel* volumeDisplayLabel;
};

#endif // VOLUMECONTROL_HPP

//#include "VolumeControl.moc"